package com.example.tianyidemo.Mapper;

import com.example.tianyidemo.pojo.Comment;
import com.example.tianyidemo.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CommentMapper {
    @Select("select * from comment")
    List<Comment> getComment();
    @Select("SELECT * FROM user WHERE userID = #{commentsUserID}")
    List<User> getCommentID(@Param("commentsUserID") Integer commentsUserID);
}
